import service from "@/utils/request";
const DEPT_BASE_URL = "/api/";
class transfer{
  //后裔转种显示
  static getDescend(data:any) {
    return service({
      url: `${DEPT_BASE_URL}Descendanttransfer/GetDescendanttransfers`,
      method: "post",
      data
    })
  }
   //后裔转种删除
  static deltetes(ids:any[])
  {
    return service({
      url: `${DEPT_BASE_URL}Descendanttransfer/DelDescendanttransfer`,
      method: "post",
      data:ids
    });
  }
  //后裔转种添加
  static addDescend(data:any[])
  {
    return service({
      url: `${DEPT_BASE_URL}Descendanttransfer/AddDelDescendanttransfer`,
      method: "post",
      data
    });
  }
  //后裔转种反填
  static ftDescend(eartag: any)
  {
    return service({
      url: `${DEPT_BASE_URL}Descendanttransfer/DetaileDescendanttransfer`,
      method: "get",
      params: {
        eartag:eartag
      }
    })
  }
  //后裔转种修改
  static updateDescend(data: any)
  {
    return service({
      url: `${DEPT_BASE_URL}Descendanttransfer/UpdateDescendanttransfer`,
      method: "put",
      data
    });
  }
}
export default transfer;